package com.vone.vmq;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author: zhangbo
 * Data：2019/11/7
 * TODO:
 */
public class OrderItemBean implements Parcelable {


    /**
     * orderSn : C157311000855771
     * createTime : 2019-11-07 15:00:09
     * unit : WBT
     * type : 1
     * name : jytzf666
     * price : 1.0
     * money : 5000.0
     * commission : 120.0
     * amount : 4880.0
     * status : 3
     * memberId : 1073
     * avatar : null
     * cusProvince : 湖北省
     * cusCity : 武汉市
     * businessOrderSn : 20191107150007609727763784403
     * payMode : ali
     */

    private String orderSn;
    private String createTime;
    private String unit;
    private int type;
    private String name;
    private double price;
    private double money;
    private double commission;
    private double amount;
    private int status;
    private int memberId;
    private String cusProvince;
    private String cusCity;
    private String businessOrderSn;
    private String payMode;

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getCommission() {
        return commission;
    }

    public void setCommission(double commission) {
        this.commission = commission;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }


    public String getCusProvince() {
        return cusProvince;
    }

    public void setCusProvince(String cusProvince) {
        this.cusProvince = cusProvince;
    }

    public String getCusCity() {
        return cusCity;
    }

    public void setCusCity(String cusCity) {
        this.cusCity = cusCity;
    }

    public String getBusinessOrderSn() {
        return businessOrderSn;
    }

    public void setBusinessOrderSn(String businessOrderSn) {
        this.businessOrderSn = businessOrderSn;
    }

    public String getPayMode() {
        return payMode;
    }

    public void setPayMode(String payMode) {
        this.payMode = payMode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orderSn);
        dest.writeString(this.createTime);
        dest.writeString(this.unit);
        dest.writeInt(this.type);
        dest.writeString(this.name);
        dest.writeDouble(this.price);
        dest.writeDouble(this.money);
        dest.writeDouble(this.commission);
        dest.writeDouble(this.amount);
        dest.writeInt(this.status);
        dest.writeInt(this.memberId);
        dest.writeString(this.cusProvince);
        dest.writeString(this.cusCity);
        dest.writeString(this.businessOrderSn);
        dest.writeString(this.payMode);
    }

    public OrderItemBean() {
    }

    protected OrderItemBean(Parcel in) {
        this.orderSn = in.readString();
        this.createTime = in.readString();
        this.unit = in.readString();
        this.type = in.readInt();
        this.name = in.readString();
        this.price = in.readDouble();
        this.money = in.readDouble();
        this.commission = in.readDouble();
        this.amount = in.readDouble();
        this.status = in.readInt();
        this.memberId = in.readInt();
        this.cusProvince = in.readString();
        this.cusCity = in.readString();
        this.businessOrderSn = in.readString();
        this.payMode = in.readString();
    }

    public static final Parcelable.Creator<OrderItemBean> CREATOR = new Parcelable.Creator<OrderItemBean>() {
        @Override
        public OrderItemBean createFromParcel(Parcel source) {
            return new OrderItemBean(source);
        }

        @Override
        public OrderItemBean[] newArray(int size) {
            return new OrderItemBean[size];
        }
    };
}
